package com.recommend.recommendkeyword.mapper;

import com.recommend.recommendkeyword.entity.Keywords;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface KeyWordsMapper {
    /**
     * 根据keywordId来查询keywords
     */
    public Keywords getKeywordById(int keywordId);

    /**
     * 查找对应的种子关键词的信息
     */
    public Keywords getKeywordBySeed(String seedKeyword);

    /**
     * 搜索次数加一
     */
    void addSearchNum(int keywordId);

    int insertKeyword(String seedKeyword, String recommendIdList, String competitiveness, String intermediary, String weight);

    int updateInfo(int keywordId, String recommendIdList, String competitiveness, String intermediary, String weight);
    int setWeight(int keywordId, String weightString);
}
